package com.ruoyi.face.domain;

import com.fasterxml.jackson.annotation.JsonProperty;

public class User {

    @JsonProperty(value = "session_id")
    private String sessionId;

    @JsonProperty(value = "username")
    private String userName;

    private String password;

    private Integer status;

    @JsonProperty(value = "lock_info")
    private LockInfo info;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LockInfo getInfo() {
        return info;
    }

    public void setInfo(LockInfo info) {
        this.info = info;
    }

    public static class LockInfo {
        private boolean locked;

        private int retryTime;

        private int unlockTime;

        public boolean isLocked() {
            return locked;
        }

        public void setLocked(boolean locked) {
            this.locked = locked;
        }

        public int getRetryTime() {
            return retryTime;
        }

        public void setRetryTime(int retryTime) {
            this.retryTime = retryTime;
        }

        public int getUnlockTime() {
            return unlockTime;
        }

        public void setUnlockTime(int unlockTime) {
            this.unlockTime = unlockTime;
        }
    }

    @Override
    public String toString() {
        return "User{" +
                "sessionId='" + sessionId + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", status=" + status +
                ", info=" + info +
                '}';
    }
}
